<script>
import BaseChart from './BaseChart.vue';

export default {
  extends: BaseChart,
  name: 'PieChart',
  data() {
    return {
      series: [{
        type: 'pie'
      }],
    }
  },
  props: {
    radius: {
      type: Number,
      default() {
        return 50
      }
    },
  },
  created() {
    this.series[0].radius = this.radius;
    this.setOption("series", this.series);
  }
}
</script>
